package com.stylefeng.guns.modular.channel.controller;

public enum StatusEnum {
    ENABLE(1, "推广中"),DISABLE(2,"下架");
    int code;
    String message;
    StatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public static String desc(Integer value) {
        if (value == null) {
            return "";
        } else {
            for (StatusEnum ms : StatusEnum.values()) {
                if (ms.getCode() == value) {
                    return ms.getMessage();
                }
            }
            return "";
        }
    }
}
